<?php
namespace app\admin\controller;
use app\admin\model\Customers;
use app\admin\model\Users;
use app\admin\controller\AdminAuth;
use think\Validate;
use think\Image;
use think\Db;
use think\Request;
class UserlogController extends AdminAuth
{
	//模块基本信息
	private $data = array(
		'module_name' => '所有跟进',
		'module_url'  => '/admin/Userlog/',
		'module_slug' => 'Log',
		'upload_path' => UPLOAD_PATH,
		'upload_url'  => '/public/uploads/',
    );
	public function index(){
	    $list = Db::name('user_log')
            ->alias('L')
            ->join('users U','L.user_id = U.id')
            ->field('L.*,U.nickname')
            ->order('log_id DESC')
            ->paginate(20);
        $this->assign([
            'list' => $list,
            'data' => $this->data
        ]);
        return view();
    }


}